Optimal. Leaf size=48 \[ -\frac {a \left (a+b x^4\right )^{1+p}}{4 b^2 (1+p)}+\frac {\left (a+b x^4\right )^{2+p}}{4 b^2 (2+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {272, 45}
\begin {gather*} \frac {\left (a+b x^4\right )^{p+2}}{4 b^2 (p+2)}-\frac {a \left (a+b x^4\right )^{p+1}}{4 b^2 (p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int x^7 \left (a+b x^4\right )^p \, dx &=\frac {1}{4} \text {Subst}\left (\int x (a+b x)^p \, dx,x,x^4\right )\\ &=\frac {1}{4} \text {Subst}\left (\int \left (-\frac {a (a+b x)^p}{b}+\frac {(a+b x)^{1+p}}{b}\right ) \, dx,x,x^4\right )\\ &=-\frac {a \left (a+b x^4\right )^{1+p}}{4 b^2 (1+p)}+\frac {\left (a+b x^4\right )^{2+p}}{4 b^2 (2+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 40, normalized size = 0.83 \begin {gather*} \frac {\left (a+b x^4\right )^{1+p} \left (-a+b (1+p) x^4\right )}{4 b^2 (1+p) (2+p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 42, normalized size = 0.88
method | result | size |
gosper | \(-\frac {\left (b \,x^{4}+a \right )^{1+p} \left (-x^{4} p b -b \,x^{4}+a \right )}{4 b^{2} \left (p^{2}+3 p +2\right )}\) | \(42\) |
risch | \(-\frac {\left (-b^{2} x^{8} p -b^{2} x^{8}-a p \,x^{4} b +a^{2}\right ) \left (b \,x^{4}+a \right )^{p}}{4 b^{2} \left (2+p \right ) \left (1+p \right )}\) | \(54\) |
norman | \(\frac {x^{8} {\mathrm e}^{p \ln \left (b \,x^{4}+a \right )}}{4 p +8}-\frac {a^{2} {\mathrm e}^{p \ln \left (b \,x^{4}+a \right )}}{4 b^{2} \left (p^{2}+3 p +2\right )}+\frac {p a \,x^{4} {\mathrm e}^{p \ln \left (b \,x^{4}+a \right )}}{4 b \left (p^{2}+3 p +2\right )}\) | \(83\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 47, normalized size = 0.98 \begin {gather*} \frac {{\left (b^{2} {\left (p + 1\right )} x^{8} + a b p x^{4} - a^{2}\right )} {\left (b x^{4} + a\right )}^{p}}{4 \, {\left (p^{2} + 3 \, p + 2\right )} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 58, normalized size = 1.21 \begin {gather*} \frac {{\left ({\left (b^{2} p + b^{2}\right )} x^{8} + a b p x^{4} - a^{2}\right )} {\left (b x^{4} + a\right )}^{p}}{4 \, {\left (b^{2} p^{2} + 3 \, b^{2} p + 2 \, b^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 418 vs.
\(2 (37) = 74\).
time = 1.89, size = 418, normalized size = 8.71 \begin {gather*} \begin {cases} \frac {a^{p} x^{8}}{8} & \text {for}\: b = 0 \\\frac {a \log {\left (x - \sqrt [4]{- \frac {a}{b}} \right )}}{4 a b^{2} + 4 b^{3} x^{4}} + \frac {a \log {\left (x + \sqrt [4]{- \frac {a}{b}} \right )}}{4 a b^{2} + 4 b^{3} x^{4}} + \frac {a \log {\left (x^{2} + \sqrt {- \frac {a}{b}} \right )}}{4 a b^{2} + 4 b^{3} x^{4}} + \frac {a}{4 a b^{2} + 4 b^{3} x^{4}} + \frac {b x^{4} \log {\left (x - \sqrt [4]{- \frac {a}{b}} \right )}}{4 a b^{2} + 4 b^{3} x^{4}} + \frac {b x^{4} \log {\left (x + \sqrt [4]{- \frac {a}{b}} \right )}}{4 a b^{2} + 4 b^{3} x^{4}} + \frac {b x^{4} \log {\left (x^{2} + \sqrt {- \frac {a}{b}} \right )}}{4 a b^{2} + 4 b^{3} x^{4}} & \text {for}\: p = -2 \\- \frac {a \log {\left (x - \sqrt [4]{- \frac {a}{b}} \right )}}{4 b^{2}} - \frac {a \log {\left (x + \sqrt [4]{- \frac {a}{b}} \right )}}{4 b^{2}} - \frac {a \log {\left (x^{2} + \sqrt {- \frac {a}{b}} \right )}}{4 b^{2}} + \frac {x^{4}}{4 b} & \text {for}\: p = -1 \\- \frac {a^{2} \left (a + b x^{4}\right )^{p}}{4 b^{2} p^{2} + 12 b^{2} p + 8 b^{2}} + \frac {a b p x^{4} \left (a + b x^{4}\right )^{p}}{4 b^{2} p^{2} + 12 b^{2} p + 8 b^{2}} + \frac {b^{2} p x^{8} \left (a + b x^{4}\right )^{p}}{4 b^{2} p^{2} + 12 b^{2} p + 8 b^{2}} + \frac {b^{2} x^{8} \left (a + b x^{4}\right )^{p}}{4 b^{2} p^{2} + 12 b^{2} p + 8 b^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.68, size = 51, normalized size = 1.06 \begin {gather*} \frac {{\left (b x^{4} + a\right )}^{2} {\left (b x^{4} + a\right )}^{p}}{4 \, b^{2} {\left (p + 2\right )}} - \frac {{\left (b x^{4} + a\right )}^{p + 1} a}{4 \, b^{2} {\left (p + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.14, size = 68, normalized size = 1.42 \begin {gather*} {\left (b\,x^4+a\right )}^p\,\left (\frac {x^8\,\left (p+1\right )}{4\,\left (p^2+3\,p+2\right )}-\frac {a^2}{4\,b^2\,\left (p^2+3\,p+2\right )}+\frac {a\,p\,x^4}{4\,b\,\left (p^2+3\,p+2\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________